BIN=ProcessPool
CC=g++
FLAGE=-c -Wall -std=c++11
LDFLAGS=-o
SRC=$(wildcard *.cc) 
OBJ=$(SRC:.cc=.o)

$(BIN):$(SRC)
	$(CC) $(LDFLAGS) $@ $^
.cc:.o
	$(CC) $(FLAGE) $< 
# <:将所有的.cc文件转换为.o文件

.PHONY:clean
clean:
	rm -f $(BIN) $(OBJ)
.PHONY:test
test:
	@echo $(SRC)
	@echo $(OBJ)
